<?php
/**
 * Created by PhpStorm.
 * User: majiawen
 * Date: 2018/2/1
 * Time: 14:34
 */
return [
    'Login' => [
        'sendCaptcha' => [
            'mobile' => ['isZero' => 1],
        ],
        'Login' => [
            'mobile' => ['isZero' => 1],
            'captcha' => ['isZero' => 1],
        ],
    ],
];
/*
//TP5内置验证规则
return [
    'Login'=>[
        'sendCaptcha'=>[
            'mobile' => 'require|number|length:11',
        ],
        'Login'=>[
            'mobile' => 'require',
            'captcha' => 'require',
        ],
    ],
];
*/